function serviceDetail(serviceId){
	$.ajax({
		//"url" : "http://127.0.0.1/app/exp/serviceDetailCheck",
		"url" : Server + "/app/exp/serviceDetailCheck",
		"type" : "Post",
		"dataType" : "Json",
		"async":false,
		"data" : {
			"serviceId" : serviceId
		},
		success : function(data){
			var time2="";
			var time3="";
			if(data.startTime!=null && data.startTime!='' && data.startTime!= undefined){
				time2 =(data.startTime).substring(0,(data.startTime).indexOf(' '));
			}
			if(data.endTime!=null && data.endTime!='' && data.endTime!= undefined){
				time3 =(data.endTime).substring(0,(data.endTime).indexOf(' '));
			}
			$("#1").val(data.serviceName);
			$("#2").val(data.serviceAgency);
			$("#3").val(data.serviceContent);
			$("#4").val(data.serviceFee);
			$("#5").val(data.contacts);
			$("#6").val(data.mobile);
			$("#7").val(data.address);
			$("#8").val(data.getTime + "天");
			$("#9").val(time2);
			$("#10").val(time3);
			
			var item ="";
			var pattern ='<img src=#12>'
			if(data.ssimagelist.length!=0){
				for(var v = 0;v<data.ssimagelist.length;v++){
						item += pattern.replace("#12", data.ssimagelist[v].imagePath)
				}
				$("#sort").html(item);
			}
			var html = "";
			var item = '<tr>\
				<th>序号</th>\
				<th>仪器名称</th>\
				<th>数量</th>\
				<th>预算费用</th>\
				<th>样品要求</th>\
			</tr>';
			var pattern='<tr>\
				<td>#1</td>\
				<td>#2</td>\
				<td>#3</td>\
				<td>#4</td>\
				<td>#5</td>\
			</tr>'
			for(var m = 0; m < data.sinsDetails.length; m++){
				var num =m+1;
				var ll = 1;
				item += pattern
				   .replace("#1", num)
	               .replace("#2", data.sinsDetails[m].chineseName)
	               .replace("#3", ll)
	               .replace("#4", data.sinsDetails[m].price)
	               .replace("#5", data.sinsDetails[m].sampleRequired)
	             
			}
			$("#serviceDetail").html(item);
			var butt = '<button id="btnget">通过审核</button>\
				<button id="denyget">拒绝审核</button>';
			if(data.isCheck == 0){
				console.log("????")
				$("#butt").html(butt);
			}
		}
	})
}
function tongyi(serviceId){
	//alert(id3);
	$.ajax({
		"url":Server + "/app/exp/modifyCheck",
		//"url":"http://127.0.0.1/app/exp/modifyCheck",
		type : "POST",
		data:{
			"serviceId" : serviceId,
			"isCheck" : 1
		},
		success : function(data){
			alert("已通过审核！");
			$(location).attr('href', 'newnew_addadd');
		},
		error : function(msg){
			alert("服务器内部错误，请联系管理员！");
		}			
	})
}
function deny(serviceId){
	//alert(id3);
	$.ajax({
		"url":Server + "/app/exp/modifyCheck",
		//"url":"http://127.0.0.1/app/exp/modifyCheck",
		type : "POST",
		data:{
			"serviceId" : serviceId,
			"isCheck" : 2
		},
		success : function(data){
			alert("已拒绝通过！");
			$(location).attr('href', 'newnew_addadd');
		},
		error : function(msg){
			alert("服务器内部错误，请联系管理员！");
		}			
	})
}